// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  ssr: true,
  app: {
    head: {
      title: process.env.NUXT_SEO_TITLE,
      meta: [
        { name: "keywords", content: process.env.NUXT_SEO_KEYWORDS, },
        { name: "description", content: process.env.NUXT_SEO_DESCRIPTION, }
      ],
      link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
    },
  },

  runtimeConfig: {
    app: {
      api: process.env.NUXT_API_URL,
    }
  },

  css: [
    '~/assets/scss/reset.scss',
    '~/assets/scss/index.scss',
  ],

  modules: [
    "@vueuse/nuxt",
    "@pinia/nuxt",
    '@pinia-plugin-persistedstate/nuxt',
    "nuxt-swiper",
    "@nuxt/image",
    "@nuxtjs/google-fonts",
  ],
  build: {
    transpile: ['pinia-plugin-persistedstate'],
  },
});